<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=Edge">
		<title>{$pageData.title}</title>
		<link rel="stylesheet" href="__STATIC__/manage/css/admin.css" />
		<link rel="stylesheet" href="__STATIC__/manage/js/layui/css/layui.css" />
		<script type="text/javascript" src="__STATIC__/manage/js/jquery.min.js"></script>
		{include file="inc/script" /}
		<script type="text/javascript" src="__STATIC__/manage/js/public.js"></script>
		<script type="text/javascript" src="__STATIC__/manage/js/layui/layui.js"></script>
	</head>
    <body>
    	<div class="right-center height-at">
			<div class="center-tit magin0">{$pageData.title}</div>
			<div class="center-nav">
				<ul>
					<li>
						<a href="javascript:;" data-method="add" class="right-btn center-nav-bnt hov "><i class="iconfont icon-add"></i>新增商品</a>
					</li>
				</ul>
				<div class="screen-bnt">
					<a href="#">筛选<i class="iconfont icon-sx"></i></a>
				</div>
			</div>
			<div class="screen-bnt-cen">
				<form class="layui-form" id="screen-form" method='get' action="{:url('goods.show/index')}">
					<ul class="clearfix">
						<li>
							<div class="layui-form-item">
								<label class="layui-form-label">名称</label>
								<div class="layui-input-block">
									<input type="text" name="title" autocomplete="off" placeholder="请输入商品名称" class="layui-input" id="title">
								</div>
							</div>
						</li>
						<li>
							<div class="layui-form-item">
								<label class="layui-form-label">价格</label>
								<div class="layui-input-block">
									<input type="text" name="price" autocomplete="off" placeholder="请输入商品价格" class="layui-input" id="price">
								</div>
							</div>
						</li>
						<li>
							<div class="layui-form-item layui-form-select-icon iconfont">
								<label class="layui-form-label">支付</label>
								<div class="layui-input-block">
								      <select name="coin_id" lay-ignore class="layui-input cion-type" id="coin_id">
								      	<option value="">请选择货币类型</option>
								      </select>
							      </div>
						    </div>
						</li>
						<li>
							<div class="layui-form-item layui-form-select-icon iconfont">
								<label class="layui-form-label">状态</label>
								<div class="layui-input-block">
								      <select name="status" lay-ignore class="layui-input member-type" id="status">
								      	<option value="">请选择商品上下架状态</option>
								        <option value="0">下架</option>
									    <option value="1">上架</option>
								      </select>
							      </div>
						    </div>
						</li>
						<li>
							<div class="layui-form-item layui-form-select-icon iconfont">
								<label class="layui-form-label">推荐</label>
								<div class="layui-input-block">
								      <select name="is_tj" lay-ignore class="layui-input member-type" id="is_tj">
								      	<option value="">是否是推荐商品</option>
								        <option value="0">否</option>
									    <option value="1">是</option>
								      </select>
							      </div>
						    </div>
						</li>
						<li>
							<div class="layui-form-item">
								<label class="layui-form-label">开始时间</label>
								<div class="layui-input-block">
									<input type="text" name="start" autocomplete="off" class="layui-input"  id="start">
								</div>
								<i class="layui-icon">&#xe637;</i>
							</div>
						</li>
						<li>
							<div class="layui-form-item">
								<label class="layui-form-label">结束时间</label>
								<div class="layui-input-block">
									<input type="text" name="end" autocomplete="off" class="layui-input"  id="end">
								</div>
								<i class="layui-icon">&#xe637;</i>

							</div>
						</li>
					</ul>
					<p><input type="button" class="button" id="ScreenBnt" data-type="reload" value="查询"><input type="submit" class="button" id="Expbnt" value="导出查询结果"></p>
				</form>
			</div>
			<div class="center-tab">
				<table class="layui-table" id="centet-cen" lay-filter="table"></table>
				<script type="text/html" id="barDemo">
					<a class="tab-cz-icon bjicon" lay-event="edit" title="编辑"></a>
					<a class="tab-cz-icon scicon" lay-event="del" title="删除"></a>
				</script>
				<script type="text/html" id="Recommend">
				  <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="tjDemo" {{ d.is_tj == 1 ? 'checked' : '' }}>
				</script>
				<script type="text/html" id="switchState">
				  <input type="checkbox" value="{{d.id}}" lay-skin="switch" lay-text="上架|下架" lay-filter="stateDemo" {{ d.status == 1 ? 'checked' : '' }}>
				</script>
			</div>
			<div class="paging"></div>
		</div>
        <script type="text/javascript" src="__STATIC__/manage/js/wangEditor/release/wangEditor.min.js"></script>

        <script>
        	//列表
        	var listSrc = "{:url('goods.api/goods')}";
 			//添加
			var addSrc = "{:url('goods.handle/add')}";
			//删除
			var delSrc = "{:url('goods.handle/del')}";
			//查看
			var seeSrc = "{:url('goods.api/getOne')}";
			//编辑
			var editSrc = "{:url('goods.handle/edit')}";
			//推荐
			var recSrc = "{:url('goods.handle/isTj')}";
			//状态
			var stateSrc = "{:url('goods.handle/isTj')}";
			//导出
			var ExpSrc = "{:url('goods.api/export_index')}";


            //上传富文本编辑图片
            var uploadsImg = "{:url('goods.api/uploads')}"
            //上传图片
            var uploadsSrc = "{:url('goods.handle/uploads')}"
		</script>
        <script type="text/javascript" src="__STATIC__/manage/js/goods/show/index.js"></script>

</body>
</html>